package jmine.tec.web.front.sample.pages.form;

import jmine.tec.web.front.pages.form.AbstractHandledFormPanel;
import jmine.tec.web.front.pages.form.HandledFormPanelFactory;
import jmine.tec.web.wicket.pages.form.FormType;

import org.apache.wicket.model.IModel;

/**
 * Factory for our sample form panel
 * 
 * @author israel.crisanto
 */
public class SampleHandledFormPanelFactory implements HandledFormPanelFactory {

    /**
     * {@inheritDoc}
     */
    public AbstractHandledFormPanel createPanel(String id, IModel<?> panelModel, FormType formType) {
        return new BackOfficeRequestSamplePanel(id, panelModel, formType);
    }
}
